function convert({tweetInfo, indent}) { return [ ...tweetInfo.content.map(text => `${indent}> ${text}`), `${indent}> \t${tweetInfo.signature}[${tweetInfo.date.href} ${tweetInfo.date.text}]` ].join('\n'); }